setblock ~ ~ ~ air destroy
kill @e[type=item,limit=1,sort=nearest,distance=..2,nbt={Item:{id:"minecraft:wheat_seeds"}}]
setblock ~ ~ ~ wheat[age=0] destroy
execute at @s run tag @e[distance=..1.5,type=item_frame,nbt={Tags:["wire"]},tag=hasPower,limit=1,sort=random] remove hasPower